package sust.cse.ruhul.jobs1;

import sust.cse.ruhul.service.LocationList;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class Page_Location extends Activity
{
	/*String[]						values	= new String[] {
			"Location 01 - 523234234", "Location 02 - 523225467",
			"Location 03 - 454555357", "Location 04 - 523456734" };*/
	
	String[] values;
	
	private ArrayAdapter<String>	listAdapter;
	private ListView				list	= null;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.page_location);
		
		Bundle extras = getIntent().getExtras();
		if (extras != null) {
		    int id = extras.getInt("jobid");  
		    String orgname = extras.getString("orgname");
		    
		    Button btnJob = (Button) findViewById(R.id.btn_open_job);
		    
		    btnJob.setText(orgname);
		    
		    list = (ListView) findViewById(R.id.list_location);
		    
		    LocationList llist = new LocationList(this,list,id,orgname);
			llist.execute(new String[]{"http://108.163.232.50:1100/LeewayWebService.asmx?op=GetAllJobs"});

		}

		
		
	}
}

